package com.hongye.proprietary.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hongye.common.utils.PageUtils;
import com.hongye.common.utils.Query;
import com.hongye.proprietary.dao.RecordHomeDao;
import com.hongye.proprietary.entity.RecordHomeEntity;
import com.hongye.proprietary.service.RecordHomeService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("recordHomeService")
public class RecordHomeServiceImpl extends ServiceImpl<RecordHomeDao, RecordHomeEntity> implements RecordHomeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RecordHomeEntity> page = this.page(
                new Query<RecordHomeEntity>().getPage(params),
                new QueryWrapper<RecordHomeEntity>()
        );

        return new PageUtils(page);
    }

}